@import "~common/css/_variables.scss";


.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  padding: 0 16px;
  color: $cfff;
  font-size: $fz13;
  background-color: $color;
  // background-color: $color;
  box-shadow: 0 0 1px #000;
  -webkit-app-region: drag;

  .colorBox {
    position: fixed;
    top: 70px;
    right: 114px;
    z-index: 6;
    color: #333;
    border-radius: 6px 6px 0px 0px;
    background-color: #fff;
    box-shadow: 0 0 10px $color;
  }

  .header_left {
    display: flex;
    align-items: center;

    .logo {
      width: 186px;
      height: 60px;
      -webkit-app-region: no-drag;
      // background: url("~common/images/logo_w.png") center left -30px / contain no-repeat;
      background: url("~common/images/logo_w.png") center left 0 / 120px no-repeat;
    }

    .arrow {
      width: 24px;
      height: 20px;
      -webkit-app-region: no-drag;
      border: 1px solid rgba(255, 255, 255, 0.5);

      &:hover {
        border: 1px solid #fff;
      }

      &.arrow_left {
        cursor: pointer;
        border-radius: 4px 0 0 4px;
        background: url("~common/images/arrow_left_w.png") center center / 14px no-repeat;
      }

      &.arrow_right {
        cursor: pointer;
        border-radius: 0 4px 4px 0;
        margin-left: -1px;
        background: url("~common/images/arrow_right_w.png") center center / 14px no-repeat;
      }
    }

    :global {
      .ant-input-affix-wrapper {
        border-radius: 15px;
        overflow: hidden;
        margin-left: 10px;
        width: 220px;
        color: $cfafafa;
        border: none;
        box-shadow: none;
        // background-color: #E13E3E;
        background-color: rgba(0, 0, 0, 0.1);
        -webkit-app-region: no-drag;

        &:focus {
          border: none;
          box-shadow: none;
        }
      }

      .ant-input {
        color: $cfafafa;
        height: 30px;
        padding-left: 10px;
        // background-color: #E13E3E;
        background-color: transparent;

        &::placeholder {
          color: $cddd;
        }

        .ant-input-search {
          padding-left: 0;
        }
      }

      .ant-input-suffix {
        margin: 0 !important;
        background-color: transparent !important;
      }

      .anticon {
        color: $cfafafa;

        &::before {
          border: none;
        }
      }
    }
  }

  .header_right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    -webkit-app-region: no-drag;

    li {
      display: flex;
      align-items: center;
      white-space: nowrap;
      cursor: pointer;

      &:nth-child(1) {
        .avatar {
          width: 24px;
          height: 24px;
          background-color: #ccc;
          background-size: contain;
          background-position: center center;
          background-repeat: no-repeat;
          border-radius: 50%;
          margin-right: 5px;
        }

        .nickname {
          display: flex;
          align-items: center;

          .vip {
            display: inline-block;
            width: 28px;
            height: 14px;
            margin-left: 2px;
            border-radius: 4px;
            background: url("~common/images/icon_vip.png") center right / contain no-repeat;
          }
        }
      }

      &:not(:nth-child(1)) {
        margin-left: 20px;
      }

      &.minu {
        width: 20px;
        height: 20px;
        background: url('~common/images/icon_minus.png') center center / 20px no-repeat;
      }

      &.close {
        width: 20px;
        height: 20px;
        background: url('~common/images/iocn_close.png') center center / 20px no-repeat;
      }
    }
  }
}